﻿<%@ Page Title="" Language="C#" MasterPageFile="~/System/System.master" AutoEventWireup="true" CodeFile="QuickLink.aspx.cs" Inherits="System_Pages_Navigation_QuickLink" %>

<%@ Register Src="~/System/Controls/FieldTemplates/SinglelineText.ascx" TagPrefix="ucc" TagName="SinglelineText" %>
<%@ Register Src="~/System/Controls/FieldTemplates/MultilineText.ascx" TagPrefix="ucc" TagName="MultilineText" %>
<%@ Register Src="~/System/Controls/FieldTemplates/MessageText.ascx" TagPrefix="ucc" TagName="MessageText" %>
<%@ Register Src="~/System/Controls/FieldTemplates/Boolean.ascx" TagPrefix="ucc" TagName="Boolean" %>
<%@ Register Src="~/System/Controls/FieldTemplates/HyperLink.ascx" TagPrefix="ucc" TagName="HyperLink" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="SiteFox_Left" Runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="SiteFox_Title" Runat="Server">
    <asp:Label ID="lab_Title" runat="server" Text="<%$ Resources:dcCommon, dc_QuickLinks %>" CssClass="content-header-title" />
    <asp:UpdatePanel ID="up_Title" runat="server" class="content-header-actions">
        <ContentTemplate>
            <asp:ImageButton ID="imb_QuickLinks_Add" runat="server" ImageUrl="~/System/Design/ico/24x24/link_add.png" onclick="imb_QuickLinks_Add_Click" ToolTip="<%$ Resources:dcCommon, dc_Add %>" />
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="SiteFox_Main" Runat="Server">
    <asp:UpdatePanel ID="up_QuickLinks" runat="server">
        <ContentTemplate>
            <asp:GridView ID="gv_QuickLinks" runat="server" CssClass="gridview" AutoGenerateColumns="false" RowStyle-CssClass="gridview-row"
                SelectedRowStyle-CssClass="gridview-selectedrow" ShowHeader="true" GridLines="None" HeaderStyle-CssClass="gridview-header">
                <Columns>
                    <asp:BoundField DataField="Name" HeaderText="<%$ Resources:dcCommon, dc_Name %>" HeaderStyle-HorizontalAlign="Left" />
                    <asp:BoundField DataField="Created" HeaderText="<%$ Resources:dcCommon, dc_Created %>" HeaderStyle-HorizontalAlign="Left" />
                    <asp:BoundField DataField="CreatedBy" HeaderText="<%$ Resources:dcCommon, dc_CreatedBy %>" HeaderStyle-HorizontalAlign="Left" />
                    <asp:BoundField DataField="Modified" HeaderText="<%$ Resources:dcCommon, dc_Modified %>" HeaderStyle-HorizontalAlign="Left" />
                    <asp:BoundField DataField="ModifiedBy" HeaderText="<%$ Resources:dcCommon, dc_ModifiedBy %>" HeaderStyle-HorizontalAlign="Left" />
                    <asp:CheckBoxField DataField="Active" HeaderText="<%$ Resources:dcCommon, dc_Active %>" ItemStyle-HorizontalAlign="Center" />
                    <asp:TemplateField>
                        <ItemTemplate>
                            <asp:LinkButton ID="lib_QuickLinks_Delete" runat="server" OnClick="lib_QuickLinks_Delete_Click" CommandArgument='<%# Eval("ID") %>' CssClass="gridview-btn gridview-btn-delete" 
                                ToolTip="<%$ Resources:dcCommon, dc_Delete %>" />
                            <asp:LinkButton ID="lib_QuickLinks_Edit" runat="server" OnClick="lib_QuickLinks_Edit_Click" CommandArgument='<%# Eval("ID") %>' CssClass="gridview-btn gridview-btn-edit" 
                                ToolTip="<%$ Resources:dcCommon, dc_Edit %>" />
                            <asp:LinkButton ID="lib_QuickLinks_Details" runat="server" OnClick="lib_QuickLinks_Details_Click" CommandArgument='<%# Eval("ID") %>' CssClass="gridview-btn gridview-btn-details" 
                                ToolTip="<%$ Resources:dcCommon, dc_Details %>" />
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
            </asp:GridView>
            <asp:HiddenField ID="hf_QuickLinks_SelectedId" runat="server" />
            <asp:Panel ID="pan_Background" runat="server" Visible="false" CssClass="background"></asp:Panel>
            <asp:Panel ID="pan_QuickLinks_AddOrEdit" runat="server" Visible="false" CssClass="actionpanel">
                <div class="actionpanel-header">
                    <asp:Label ID="lab_QuickLinks_AddOrEdit_Title" runat="server" />
                    <asp:LinkButton ID="lib_QuickLinks_AddOrEdit_Close" runat="server" CssClass="actionpanel-header-close" onclick="lib_QuickLinks_AddOrEdit_Close_Click" />
                </div>
                <div class="actionpanel-content">
                    <ucc:SinglelineText ID="ucc_QuickLinks_AddOrEdit_Name" runat="server" IsReq="true" ReadOnly="false" Title="<%$ Resources:dcCommon, dc_Name %>" ValueMaxLength="50" />
                    <ucc:MultilineText ID="ucc_QuickLinks_AddOrEdit_Description" runat="server" IsReq="false" Title="<%$ Resources:dcCommon, dc_Description %>" ValueRows="10" />
                    <ucc:Boolean ID="ucc_QuickLinks_AddOrEdit_Active" runat="server" Title="<%$ Resources:dcCommon, dc_Active %>" />
                    <asp:LinkButton ID="lib_QuickLinks_AddOrEdit_Ok" runat="server" CssClass="LinkButton" ValidationGroup="mainValGroup" onclick="lib_QuickLinks_AddOrEdit_Ok_Click" />
                </div>
            </asp:Panel>
            <asp:Panel ID="pan_QuickLinks_Delete" runat="server" Visible="false" CssClass="actionpanel">
                <div class="actionpanel-header">
                    <asp:Label ID="lab_QuickLinks_Delete_Title" runat="server" Text="<%$ Resources:dcCommon, dc_Delete %>" />
                    <asp:LinkButton ID="lib_QuickLinks_Delete_Close" runat="server" CssClass="actionpanel-header-close" onclick="lib_QuickLinks_Delete_Close_Click" />
                </div>
                <div class="actionpanel-content">
                    <ucc:MessageText ID="ucc_QuickLinks_Delete_Text" runat="server" Title="" Value="<%$ Resources:dcCommon, dc_ConfirmDeleting %>" />
                    <asp:LinkButton ID="lib_QuickLinks_Delete_Ok" runat="server" CssClass="LinkButton" Text="<%$ Resources:dcCommon, dc_Confirm %>" ValidationGroup="mainValGroup" 
                        onclick="lib_QuickLinks_Delete_Ok_Click" />
                </div>
            </asp:Panel>
            
            <asp:Panel ID="pan_QuickLink_Title" runat="server" CssClass="FormTitle" Visible="false">
                <asp:Label ID="lab_QuickLink_Title" runat="server" CssClass="content-header-title" />
                <asp:UpdatePanel ID="up_QuickLink_Title" runat="server" class="content-header-actions">
                    <ContentTemplate>
                        <asp:ImageButton ID="imb_QuickLink_Add" runat="server" ImageUrl="~/System/Design/ico/24x24/add2.png" 
                            onclick="imb_QuickLink_Add_Click" CssClass="ActionButton" ToolTip="<%$ Resources:dcCommon, dc_Add %>" />
                    </ContentTemplate>
                </asp:UpdatePanel>
            </asp:Panel>
            <asp:GridView ID="gv_QuickLink" runat="server" CssClass="gridview" AutoGenerateColumns="false" RowStyle-CssClass="gridview-row" SelectedRowStyle-CssClass="gridview-selectedrow" ShowHeader="true" 
                GridLines="None" HeaderStyle-CssClass="gridview-header">
                <Columns>
                    <asp:BoundField DataField="Title" HeaderText="<%$ Resources:dcCommon, dc_Title %>" HeaderStyle-HorizontalAlign="Left" />
                    <asp:BoundField DataField="Url" HeaderText="<%$ Resources:dcCommon, dc_Url %>" HeaderStyle-HorizontalAlign="Left" />
                    <asp:BoundField DataField="Ordering" HeaderText="<%$ Resources:dcCommon, dc_Ordering %>" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" ItemStyle-Width="50px" />
                    <asp:TemplateField ItemStyle-HorizontalAlign="Center" ItemStyle-Width="40px">
                        <ItemTemplate>
                            <asp:LinkButton ID="lib_QuickLink_MoveUp" runat="server" OnClick="lib_QuickLink_MoveUp_Click" CommandArgument='<%# Eval("ID") %>' CssClass="gridview-btn gridview-btn-moveup" 
                                ToolTip="<%$ Resources:dcCommon, dc_Up %>" />
                            <asp:LinkButton ID="lib_QuickLink_MoveDown" runat="server" OnClick="lib_QuickLink_MoveDown_Click" CommandArgument='<%# Eval("ID") %>' CssClass="gridview-btn gridview-btn-movedown" 
                                ToolTip="<%$ Resources:dcCommon, dc_Down %>" />
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField ItemStyle-Width="80px">
                        <ItemTemplate>
                            <asp:LinkButton ID="lib_QuickLink_Delete" runat="server" OnClick="lib_QuickLink_Delete_Click" CommandArgument='<%# Eval("ID") %>' CssClass="gridview-btn gridview-btn-delete" 
                                ToolTip="<%$ Resources:dcCommon, dc_Delete %>" />
                            <asp:LinkButton ID="lib_QuickLink_Edit" runat="server" OnClick="lib_QuickLink_Edit_Click" CommandArgument='<%# Eval("ID") %>' CssClass="gridview-btn gridview-btn-edit" 
                                ToolTip="<%$ Resources:dcCommon, dc_Edit %>" />
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
            </asp:GridView>
            <asp:Panel ID="pan_QuickLink_AddOrEdit" runat="server" Visible="false" CssClass="actionpanel">
                <div class="actionpanel-header">
                    <asp:Label ID="lab_QuickLink_AddOrEdit_Title" runat="server" />
                    <asp:LinkButton ID="lib_QuickLink_AddOrEdit_Close" runat="server" CssClass="actionpanel-header-close" onclick="lib_QuickLink_AddOrEdit_Close_Click" />
                </div>
                <div class="actionpanel-content">
                    <ucc:SinglelineText ID="ucc_QuickLink_AddOrEdit_Title" runat="server" IsReq="true" ReadOnly="false" Title="<%$ Resources:dcCommon, dc_Title %>" ValueMaxLength="50" />
                    <ucc:HyperLink ID="ucc_QuickLink_AddOrEdit_Url" runat="server" IsReq="false" RootPath="~/Web" ShowFiles="true" Title="<%$ Resources:dcCommon, dc_Url %>" />
                    <ucc:MultilineText ID="ucc_QuickLink_AddOrEdit_Description" runat="server" IsReq="false" Title="<%$ Resources:dcCommon, dc_Description %>" ValueRows="10" />
                    <div class="FieldTemplates_Row">
                        <asp:Label ID="lab_QuickLink_AddOrEdit_Target_Title" runat="server" CssClass="Label" Text="<%$ Resources:dcCommon, dc_Target %>"></asp:Label>
                        <asp:DropDownList ID="ddl_QuickLink_AddOrEdit_Target_Value" runat="server" CssClass="DropDownList">
                            <asp:ListItem Text="<%$ Resources:dcCommon, dc_OpenInSameWindow %>" Value="_self" />
                            <asp:ListItem Text="<%$ Resources:dcCommon, dc_OpenInNewWindow %>" Value="_blank" />
                        </asp:DropDownList>
                    </div>
                    <asp:LinkButton ID="lib_QuickLink_AddOrEdit_Ok" runat="server" CssClass="LinkButton" ValidationGroup="mainValGroup" onclick="lib_QuickLink_AddOrEdit_Ok_Click" />
                </div>
                <asp:HiddenField ID="hf_QuickLink_AddOrEdit_Id" runat="server" />
            </asp:Panel>
            <asp:Panel ID="pan_QuickLink_Delete" runat="server" Visible="false" CssClass="actionpanel">
                <div class="actionpanel-header">
                    <asp:Label ID="lab_QuickLink_Delete_Title" runat="server" Text="<%$ Resources:dcCommon, dc_Delete %>" />
                    <asp:LinkButton ID="lib_QuickLink_Delete_Close" runat="server" CssClass="actionpanel-header-close" onclick="lib_QuickLink_Delete_Close_Click" />
                </div>
                <div class="actionpanel-content">
                    <ucc:MessageText ID="ucc_QuickLink_Delete_Text" runat="server" Title="" Value="<%$ Resources:dcCommon, dc_ConfirmDeleting %>" />
                    <asp:LinkButton ID="lib_QuickLink_Delete_Ok" runat="server" CssClass="LinkButton" Text="<%$ Resources:dcCommon, dc_Confirm %>" ValidationGroup="mainValGroup" 
                        onclick="lib_QuickLink_Delete_Ok_Click" />
                    <asp:HiddenField ID="hf_QuickLink_Delete_Id" runat="server" />
                </div>
            </asp:Panel>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>

